<html>
<head>
<meta charset="utf-8">
<title>滨江台风号</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
		body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
		#allmap{height:100%;width:100%;}
		#r-result{width:100%;}
	</style>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=kEFvRxLsZMP1LuappjehN0aA"></script>
</head>
<body>
<div id="allmap"></div>
<script type="text/javascript">
	window.alert("请长按目标地区以完成搜索");
	// 百度地图API功能
	var map = new BMap.Map("allmap",{mapType: BMAP_HYBRID_MAP});     
	var point = new BMap.Point(116.4064,26.8093); // 创建点坐标     
	map.centerAndZoom(point, 6); // 初始化地图，设置中心点坐标和地图级别    
	map.addEventListener("longpress", function(e){   
		 
		 if(window.confirm("当前点为"+e.point.lng+","+e.point.lat+"，确定吗？")){
			 window.location.href='\areaSearchResult.php?jing='+e.point.lng+'&wei='+e.point.lat;
		 }else{
			 alert("请重新选点");
		 }
		 
		});
</script>
</body>
</html>